Optimal. Leaf size=67 \[ \frac {5 x}{16}+\frac {5 \cos (a+b x) \sin (a+b x)}{16 b}+\frac {5 \cos ^3(a+b x) \sin (a+b x)}{24 b}+\frac {\cos ^5(a+b x) \sin (a+b x)}{6 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2715, 8}
\begin {gather*} \frac {\sin (a+b x) \cos ^5(a+b x)}{6 b}+\frac {5 \sin (a+b x) \cos ^3(a+b x)}{24 b}+\frac {5 \sin (a+b x) \cos (a+b x)}{16 b}+\frac {5 x}{16} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rubi steps
\begin {align*} \int \cos ^6(a+b x) \, dx &=\frac {\cos ^5(a+b x) \sin (a+b x)}{6 b}+\frac {5}{6} \int \cos ^4(a+b x) \, dx\\ &=\frac {5 \cos ^3(a+b x) \sin (a+b x)}{24 b}+\frac {\cos ^5(a+b x) \sin (a+b x)}{6 b}+\frac {5}{8} \int \cos ^2(a+b x) \, dx\\ &=\frac {5 \cos (a+b x) \sin (a+b x)}{16 b}+\frac {5 \cos ^3(a+b x) \sin (a+b x)}{24 b}+\frac {\cos ^5(a+b x) \sin (a+b x)}{6 b}+\frac {5 \int 1 \, dx}{16}\\ &=\frac {5 x}{16}+\frac {5 \cos (a+b x) \sin (a+b x)}{16 b}+\frac {5 \cos ^3(a+b x) \sin (a+b x)}{24 b}+\frac {\cos ^5(a+b x) \sin (a+b x)}{6 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 43, normalized size = 0.64 \begin {gather*} \frac {60 a+60 b x+45 \sin (2 (a+b x))+9 \sin (4 (a+b x))+\sin (6 (a+b x))}{192 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 48, normalized size = 0.72
method | result | size |
risch | \(\frac {5 x}{16}+\frac {\sin \left (6 b x +6 a \right )}{192 b}+\frac {3 \sin \left (4 b x +4 a \right )}{64 b}+\frac {15 \sin \left (2 b x +2 a \right )}{64 b}\) | \(47\) |
derivativedivides | \(\frac {\frac {\left (\cos ^{5}\left (b x +a \right )+\frac {5 \left (\cos ^{3}\left (b x +a \right )\right )}{4}+\frac {15 \cos \left (b x +a \right )}{8}\right ) \sin \left (b x +a \right )}{6}+\frac {5 b x}{16}+\frac {5 a}{16}}{b}\) | \(48\) |
default | \(\frac {\frac {\left (\cos ^{5}\left (b x +a \right )+\frac {5 \left (\cos ^{3}\left (b x +a \right )\right )}{4}+\frac {15 \cos \left (b x +a \right )}{8}\right ) \sin \left (b x +a \right )}{6}+\frac {5 b x}{16}+\frac {5 a}{16}}{b}\) | \(48\) |
norman | \(\frac {\frac {5 x}{16}+\frac {11 \tan \left (\frac {b x}{2}+\frac {a}{2}\right )}{8 b}-\frac {5 \left (\tan ^{3}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{24 b}+\frac {15 \left (\tan ^{5}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{4 b}-\frac {15 \left (\tan ^{7}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{4 b}+\frac {5 \left (\tan ^{9}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{24 b}-\frac {11 \left (\tan ^{11}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8 b}+\frac {15 x \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8}+\frac {75 x \left (\tan ^{4}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{16}+\frac {25 x \left (\tan ^{6}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{4}+\frac {75 x \left (\tan ^{8}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{16}+\frac {15 x \left (\tan ^{10}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8}+\frac {5 x \left (\tan ^{12}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{16}}{\left (1+\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )^{6}}\) | \(199\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 48, normalized size = 0.72 \begin {gather*} -\frac {4 \, \sin \left (2 \, b x + 2 \, a\right )^{3} - 60 \, b x - 60 \, a - 9 \, \sin \left (4 \, b x + 4 \, a\right ) - 48 \, \sin \left (2 \, b x + 2 \, a\right )}{192 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 46, normalized size = 0.69 \begin {gather*} \frac {15 \, b x + {\left (8 \, \cos \left (b x + a\right )^{5} + 10 \, \cos \left (b x + a\right )^{3} + 15 \, \cos \left (b x + a\right )\right )} \sin \left (b x + a\right )}{48 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 139 vs.
\(2 (61) = 122\).
time = 0.37, size = 139, normalized size = 2.07 \begin {gather*} \begin {cases} \frac {5 x \sin ^{6}{\left (a + b x \right )}}{16} + \frac {15 x \sin ^{4}{\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}}{16} + \frac {15 x \sin ^{2}{\left (a + b x \right )} \cos ^{4}{\left (a + b x \right )}}{16} + \frac {5 x \cos ^{6}{\left (a + b x \right )}}{16} + \frac {5 \sin ^{5}{\left (a + b x \right )} \cos {\left (a + b x \right )}}{16 b} + \frac {5 \sin ^{3}{\left (a + b x \right )} \cos ^{3}{\left (a + b x \right )}}{6 b} + \frac {11 \sin {\left (a + b x \right )} \cos ^{5}{\left (a + b x \right )}}{16 b} & \text {for}\: b \neq 0 \\x \cos ^{6}{\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 46, normalized size = 0.69 \begin {gather*} \frac {5}{16} \, x + \frac {\sin \left (6 \, b x + 6 \, a\right )}{192 \, b} + \frac {3 \, \sin \left (4 \, b x + 4 \, a\right )}{64 \, b} + \frac {15 \, \sin \left (2 \, b x + 2 \, a\right )}{64 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 42, normalized size = 0.63 \begin {gather*} \frac {5\,x}{16}+\frac {\frac {15\,\sin \left (2\,a+2\,b\,x\right )}{64}+\frac {3\,\sin \left (4\,a+4\,b\,x\right )}{64}+\frac {\sin \left (6\,a+6\,b\,x\right )}{192}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________